@extends("home.base")
@section("content")
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><script type="text/javascript" async="" src="{{asset('personal/myorder/s.js')}}"></script><script type="text/javascript" async="" src="{{asset('personal/myorder/mvl.js')}}"></script>

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>我的订单 -- 当当</title>
<link href="{{asset('personal/myorder/order.min.css')}}" rel="stylesheet" type="text/css">
<link href="{{asset('personal/myorder/myorder.css')}}" rel="stylesheet" type="text/css">
<link href="{{asset('personal/myorder/order_my.css')}}" rel="stylesheet" type="text/css">
<!-- <link href="css/order.css?20130828" rel="stylesheet" type="text/css" />-->
<link href="{{asset('personal/myorder/header.css')}}" rel="stylesheet" type="text/css">
<link href="{{asset('personal/myorder/reco_wrap.css')}}" rel="stylesheet" type="text/css">






<div id="hd">
<div id="tools">

</div>

	<!-- workarea -->
	
 <div class="mydnew_break">您现在的位置：<a href="#">当当</a> &gt; <span><a href="#">我的当当</a></span> &gt; <span>我的订单</span> 
 </div> 
    
    
    

	<div class="clear"></div>
	<div class="wrapper">
		<div id="leftmenu" style="width: 170px; float: left; min-height: 300px; _height: 300px">    		<div class="mydang_left">
        <div class="mydang_left_inner">
            <h3 class="mydang_left_title border_top0">我的常用链接<a id="DocPersonal_set" name="setting" href="#" style="font-size: 12px; color:#1A66B3;font-family: 宋体; font-weight:normal; padding-left: 40px;">设置</a></h3>
            <ul style="padding:0px;" class="my_href" id="myfavoriteLink"><input type="hidden" id="rememberCustomerID" value="0"></ul>
			<h3 class="mydang_left_title">个人中心<a class="slide_up" id="class600" href="#"></a></h3>
			<ul class="my_content" style="display:block;" id="display600">
				<li><a href="{{url('home/myorder')}}" class="on">我的订单</a>
				</li>
				<li><a class="" target="_parent" href="{{url('home/myinfo')}}" name="profileleft">个人信息</a>
				</li>
				<li><a class="" target="_parent" href="{{url('home/address/index')}}" name="myaddress">收货地址</a>
				</li>
			</ul>
			<h3 class="mydang_left_title">我的收藏<a class="slide_up" id="class610" href="#"></a></h3>
			<ul class="my_content" style="display:block;" id="display610">
				<li><a class="" target="_parent" href="{{url('home/mysc')}}" name="wishlist">商品收藏</a>
				</li>
			</ul>
           </div>
         </div>








   <style type="text/css">
     /*设置弹出效果*/
.new_window{width:337px; border:solid 2px #447aa9; background-color:#f7fff8}
.wind_top{height:20px; padding:2px 2px 0 8px; background-color:#458bc9}
.wind_top .title_left{padding-top:2px; color:#fff; float:left}
.w_close{ float:right}



   </style>





    


<div id="tag_box1" style="display:none;position:absolute; z-index:20000;"></div>
<div id="callbackjs"></div>
  





    </div>
		
			<div class="centersidebar" id="adDiv">
				<div class="ad" id="ad_cpt_12221"><a href="#" target="_blank" rel="nofollow"><img src="{{asset('personal/myorder/2016082915274990480.jpg')}}"></a></div>
			</div>
		
		<div class="centersidebar">
			<div class="myddorder_tab">
				<a name="myorders" class="current"><span>我的订单</span></a>
				
					<a name="mytuanorders" href="#"><span>我的团购订单</span></a>
				
				
				
				
					<a name="mylifeserviceorders" href="#"><span>生活服务订单</span></a>
				
				
					<a name="mylifeserviceorders" target="_blank" href="#"><span>以旧换新</span></a>
				
				
				
					<a name="mydeleteorders" id="mydeleteorders" href="#" class="link">订单回收站</a>
				
			</div>
			<div class="myddorder_search clearfix">
				<div class="myddorder_inquiry">
					<input id="searchKey" class="text gray" type="text" value="商品名称、订单号、收货人姓名"><a href="#" class="btn_see" name="searchorders">搜索</a>
				</div>
			</div>

			
			
			
				<!-- <div class="order_prompt" >提示：刚提交的订单可能无法马上显示，请您耐心等待。</div> -->
				<div id="order_list">
					<span></span><table cellpadding="0" cellspacing="0" class="order_list">
						<thead>
							<tr class="order_list_title">
								<td class="row01">商品信息</td>
								<td class="row03">实付款</td>
								<td width="" class="row04">订单信息</td>
								<td width="" class="row05"></td>
								<td width="" class="row06">
									<div class="select_div">
										<select id="o_status" style="z-index: 0;" autocomplete="off" onchange="zt();"><option value="0" selected="">全部状态</option>
											<option value="1">未付款</option>
											<option value="2">已付款</option>
											<option value="3">交易成功</option>
										</select>
									</div>
								</td>
								<td width="92" class="row02">操作</td>
							</tr>
						</thead>
						<tbody>
							
								<tr class="order_all">
									<td colspan="6">
										<div class="fanye fanye_top">
											
												<a href="#" class="fanye_page fanye_none"><span>下一页</span></a>
											
											
											<a href="#" class="nonce"><span>1
											</span></a>
											
												<a href="#" class="fanye_page fanye_none"><span>上一页</span></a>
											
											
										</div> <label><span class="checkbox_none"><input type="checkbox" name="unionselect" disabled="disabled"></span>全选</label>
										
										
									</td>
								</tr>
							
								@foreach($order as $k=>$v)
									
								<tr class="order_number" id="pid_34047860558_sid_0">
									<td colspan="6"><span class="fl">
												<span class="checkbox_none">
											<input type="checkbox" id="ckb_parent_34047860558" disabled="disabled">
										</span>
									 
									
									
									     
										
											
												<span class="icon"></span>
											 
										
									 <span class="number">   
												
											订单号：<a href="#" target="_blank" name="orderlink">{{$v}}</a></span></span>  
											
										
										
										 <span class="zaixian" onclick="javascript:shopOnlineService(0,34047860558,52.30)">
											
											<span class="onlines" style="display: block;"></span>
									</span> <span class="zaixian" title="系统暂时繁忙，请您稍后访问"><span class="offlines" style="display: none;"></span></span> 
									
									
										  
										
										
											<span class="tel">服务电话： 010-51236699</span>
										</td>
								</tr>
								
									
									<tr>
										<td>
											
											<div class="pic_box">
												
													
														
															
														
													
															@foreach($list[$k] as $s=>$m)
															
															<a name="productlink" href="#" target="_blank"><img width="70px" height="70px" src="{{asset('uploads/admin/')}}/{{$m->logo}}" alt="{{$m->tname}}" title="{{$m->tname}}"></a>
																
															@endforeach
														
													
												
											</div>
										</td>
										<td>
												
													
												<span class="price">￥{{$list[$k][0]->money}}</span>
												
											
										</td>
										<td class="left">{{$list[$k][0]->payment}}
										
												<br>
												<span class="role">
													<div class="order_pop_info" style="width: 160px; right: -178px; top: 21px; display: none;">
														<p class="padding">
															
															
															****荣教育园区兄弟连 100000
														</p>
														<p>电话：188****9363</p>
													</div>{{$list[$k][0]->pName}}
												</span>
											</td>
										<td></td>
										<td class="left02">
											@if($list[$k][0]->status == 0)
												未付款
											@elseif($list[$k][0]->status == 1)
												已付款
											@elseif($list[$k][0]->status == 2)
												订单已取消
											@elseif($list[$k][0]->status == 3)
												交易成功
											@endif
										<br> 
											
												
											
										</td>
										
											<td class="operate" style="display: block;">
												
												
													
												
												    
													<a href="#" name="reviewlink" class="btn_gr" style="background-position: 0% -250px;" target="_blank">评价商品</a>
													<br>
												 <a href="{{url('home/order/')}}/{{$v}}/edit" name="orderdetaillink" target="_blank">订单详情</a><br>   
												
													
													
													
														<a name="orderdeletelink" id="orderdeletelink_34047860558" href="{{url('home/myorder')}}/{{$v}}">删除</a>
													
												</td>
										
									</tr>
								
								@endforeach
							
							
								<tr class="order_all">
									<td colspan="6">
										<div class="fanye">
											
												<a href="#" class="fanye_page fanye_none"><span>下一页</span></a>
											
											
											
												
													<a class="nonce"><span>1</span></a>
												
												
											
											
												<a href="#" class="fanye_page fanye_none"><span>上一页</span></a>
											
											
										</div> <label><span class="checkbox_none"><input type="checkbox" name="unionselect" disabled="disabled"></span>全选</label>
										<a href="#" class="btn_gr btn_gr_none" name="unionpaylink" style="display: none;" id="unionpaylink2" onclick="javascript: return unionPayCheck()" target="_blank">合并支付</a>
									</td>
								</tr>
							
						</tbody>
					</table>

				</div>
			
			<script type="text/javascript">
				/* function zt(){
					var v = $("#o_status").children("option:selected").attr("value");
					$.ajax({
						type: 'GET',
						url:"{{url('/home/myorder/zt')}}",
						data: {v:v},
						async: false,
						success: function(flg) {
							if (res == "Y"){
								
							}
							else
								alert("设置默认地址薄失败，请重试！");
						},
						error:function(){
							alert("Sorry~~~failed");
						}
					});

				} */
			</script>
			
			<br>
			
			
			<div class="fix_box">
				
				<div class="fix_erweima">
					<iframe src="" frameborder="0" style="display: none"></iframe>
					<a href="#" class="little"></a><a href="#" class="big" style="display: none"></a>
				</div>
				<a href="#" class="fix_box_survey" target="_blank">调查问卷</a>
				<a href="#" class="fix_box_back_up">返回顶部</a>
			</div>
		</div>
	</div>

	<div class="masks" id="masks" style="display: none;">	
	</div>
	<div id="tag_box" style="display: none; position: absolute; z-index: 9999;"></div>
	<div id="calendar_frame"></div>
	
<link href="{{asset('personal/myorder/win_login20150728.css')}}" rel="stylesheet" type="text/css">


@endsection